home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Audio / Patchmix / Source / Patchmix.nib (.txt) < prev    next >
NeXT TypedStream Data  |  1992-08-18  |  14KB  |  344 lines

  1. typedstream
  2. StreamTable
  3.     HashTable
  4. Object
  5. [20c]
  6. typedstream
  7. [1804c]
  8. typedstream
  9.     HashTable
  10. Object
  11. HeaderClass
  12. %%%%i@@
  13. UnitGen
  14. genericobject_nib
  15. PaletteView
  16. /usr/include/sys/message.h
  17. viewnib
  18. patchVw
  19. image
  20. ParamPanel
  21. Panel
  22.     windownib
  23. ImageController
  24. paletteView
  25. instPath
  26. sndPath
  27.     scorePath
  28. appDidInit:
  29.     PatchView
  30. /usr/include/stddef.h
  31. screenImage
  32.     connUgen1
  33. paramVal
  34. currentUgen
  35. connParam1
  36. delegate
  37. outUgen
  38. currentParam
  39. currentImage
  40. erase:
  41. Reson
  42. Instrum
  43.     Converter
  44. FirstResponder
  45. firstnib
  46. checkSpelling:
  47. alignSelCenter:
  48.     unscript:
  49. pasteFont:
  50. runPageLayout:
  51. superscript:
  52. copyRuler:
  53.     copyFont:
  54. selectAll:
  55. pasteRuler:
  56. toggleRuler:
  57. showGuessPanel:
  58. alignSelLeft:
  59. paste:
  60. performClose:
  61. arrangeInFront:
  62. subscript:
  63. copy:
  64. alignSelRight:
  65. delete:
  66. orderFrontColorPanel:
  67. underline:
  68. performMiniaturize:
  69. PatchWindow
  70. Window
  71. viewRectList
  72. Param
  73. Oscil
  74. Arith
  75.     Statement
  76. CommandScroll
  77. ScrollView
  78. docView
  79. Coordinator
  80. stringTable
  81. theSubprocess
  82. outputWindow
  83.     scoreData
  84. instName
  85.     pathNames
  86. sampRate
  87. commandView
  88. numChans
  89. runIt:
  90. writeCode:
  91. playIt:
  92. rescaleIt:
  93. compileInst:
  94. writeScore:
  95. [12378c]
  96. typedstream
  97.     HashTable
  98. Object
  99. NibData
  100. @@@@s
  101. Storage
  102. {*@@}
  103.     [81{*@@}]
  104. File's Owner
  105. CustomObject
  106. Application
  107. MainMenu
  108. MenuTemplate
  109. *@*@ccc
  110. Patchmix
  111. Matrix
  112. Control
  113.     Responder
  114. @:@iiii
  115. MenuCell
  116. ButtonCell
  117. ActionCell
  118. Info...
  119.     Helvetica
  120. Unit Generators
  121. Score
  122. File Information
  123. Display Output
  124. Paste
  125. Select All
  126. ff@@#::s
  127. submenuAction:
  128. Bitmap
  129.     menuArrow
  130. MyWindow
  131. WindowTemplate
  132. iiii***@s@
  133. PatchWindow
  134. FormCell
  135. inst1
  136. Instrument Name:
  137. Field:
  138. Path:
  139. CustomView
  140.     PatchView
  141. Reset
  142. Write Code
  143. Compile
  144. Rescale
  145. Button
  146. Param:
  147. Instrument Name
  148. Form1
  149. Matrix1
  150. Form2
  151. Param
  152. CoordinatorInstance
  153. Coordinator
  154. FileInfoPanel
  155. Panel
  156. Sound File:
  157. Sound Directory:
  158. Score File:
  159. Score Directory:
  160.     /musr/bin
  161. Cmix Commands  Directory:
  162. /musr/cmix
  163. Cmix Directory:
  164. NXImage
  165. NXradio
  166. NXradioH
  167. Stereo
  168. Radio
  169. 44100
  170. 22050
  171.     TextField
  172. TextFieldCell
  173. Sampling Rate
  174. Sound File Header:
  175. Helvetica-Bold
  176.  Paths:o
  177. Sound File31
  178. Sound Directory71
  179. Score File;1
  180. Score Directory?1
  181. Cmix Commands  DirectoryC1
  182. Cmix DirectoryG1
  183. Field2d+
  184. Fieldi+
  185. Field1l+
  186. Field3q+
  187. NXStringTable
  188. OutputWindow
  189. Output
  190. Window
  191. CommandScroll
  192. ScoreWindow
  193. Score Data
  194. [17@]
  195. p[0] = Start Time:
  196. p[1] = Duration:
  197. p[2] = Amplitude:
  198. p[3]:
  199. p[4]:
  200. p[5]:
  201. p[6]:
  202. p[7]:
  203. p[8]:
  204. p[9]:
  205. p[10]:
  206. p[11]:
  207. p[12]:
  208. p[13]:
  209. p[14]:
  210. p[15]:
  211. p[16]:
  212. Write
  213. p[0] = Start Time
  214. p[1] = Duration
  215. p[2] = Amplitude
  216. p[10]
  217. p[11]
  218. p[12]
  219. p[13]
  220. p[14]
  221. p[15]
  222. p[16]
  223.     InfoPanel
  224. -An Instrument Builder
  225.     for Paul Lansky's Cmix
  226. by  Mara Helmuth
  227. mara@woof.music.columbia.edu, mara@silvertone.princeton.edu 
  228. 709 Dodge Hall, Columbia University, New York, NY 10025
  229. ScrollView
  230. ClipView
  231. ciifffcfffs
  232. [4944c]{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fswiss Helvetica;}
  233. \margl40
  234. \margr40
  235. {\colortbl\red0\green0\blue0;}
  236. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ul0\fs24\fc0 \
  237.                          
  238. \b\i What is Patchmix?
  239. \b0\i0 \
  240. Patchmix  is a graphical interface to the Cmix Programming Language.  Within it, \
  241. you can create and test Cmix instruments.  Since the code for the instrument is written\
  242. out to a specified directory, you can then work with this code later and modify it as you\
  243. wish.  Patchmix can be helpful either to someone learning Cmix or for quickly putting together\
  244. instruments, which can then be modified as necessary.  To run it, you need Cmix installed\
  245. in the directory specified in your file  information window. \
  246.     To get started, first make sure you have correct file info in the File Information panel and for the instrument name and path on the Patchmix window.  The default values assume a "NewInst" and "sf" directory or link exists in your home directory for the instrument and sound files.  Then, drag unit generators from the palette window onto the white patch view.  Double-click on any unwanted unit generators to remove them.  To set parameters for their inputs, double click on the parameter knob and set the value in the top right param field.  Click again on the parameter to save the value and un-highlight the parameter.  Then, connect the unit generators, outputs to inputs, by dragging the mouse from output to input.  Redrawing will erase them.   When you're done making a patch, write out a score from the Score Data panel, being sure to fill in any designated parameter fields if you used them in the input parameters (i.e., p[3] could be a frequency input to an oscillator).   Cmix p-fields default to "0".  Then, you're ready to test it out.  Hit the "write code", "compile", "run", "rescale" and "play" buttons.  To make sure each process has finished before starting the next, watch the "display output" window.\
  247. Send any bugs, suggestions or comments to mara@woof.music.columbia.edu.\
  248.                            
  249. \b\i Main Window
  250. \b0\i0 \
  251. The main window is where the flow chart is constructed, and where you select instrument-\
  252. building functions with the compile, play or run buttons.  Also,  the name of your instrument\
  253. and the directory where you want the code to be written should be specified in the form fields.\
  254. To the right, the "param" field holds values you want to store as inputs to the unit generators.\
  255.                            
  256. \b\i Panel Buttons
  257. \b0\i0 \
  258. \b reset 
  259. \b0 will clear the flow chart off the screen (except for the output unit generator).\
  260.     This is an irreversible procedure.\
  261. \b write code 
  262. \b0 will write out the Cmix code into the "NewInst" directory, under filenames\
  263.     "inst1.c", "Makefile" and "profile.c".  If you already have these files in this directory\
  264.     they will be overwritten.  If you specify different file names and path in the main     window, they will be used.   \
  265. \b compile
  266. \b0  will compile the new instrument program.\
  267. \b run 
  268. \b0 creates the sound file by running the Cmix program.\
  269. \b rescale
  270. \b0  will rescale the sound file from a floating point to an integer sound file.\
  271. \b play 
  272. \b0 will play the sound file.\
  273. \b compile 
  274. \b0 will  compile the instrument that has been written out.\
  275. \b run 
  276. \b0 will run the cmix job using the instrument specified in the main window, and the\
  277.     score file and sound file specified in the file information window.\
  278. \b rescale 
  279. \b0 will rescale the soundfile into a playable integer file.\
  280. \b play 
  281. \b0 will play the soundfile.\
  282. Warning:  Loops in the patch will not work.  The output of a unit generator can only be\
  283.     connected to one other unit generator.\
  284.                         
  285. \b\i Cmix Unit Generators\
  286. \b0\i0 The unit generator panel contains in the first row  an oscilator, buzz, random number\
  287. generator, evp (simple envelope with attack and decay) and a reson filter.  The\
  288. second and fourth rows are not yet working.   The third row contains addition, subtraction\
  289. multiplication and division operators.  The six items in the right-most column are pitch\
  290. converters.  "pch" means octave.pitch class representation, "oct" means octave.decimal,\
  291. and "cps" means Hertz or cycles per second.  So, "pchcps" converts from Hz to octave.\
  292. pitch class notation.  The Cmix man pages explain more about these unit generators.\
  293. The input values to each parameter or argument of the unit generator may be set internally\
  294. by Patchmix, or more often can be set by the user in the "Param" field at the top of the main\
  295. window.  If the value is something that should be determined by the data or score file\
  296. and not specified in the instrument, enter a new p-field number in the Param field when this\
  297. input is selected.  For example, in a one-oscil instrument, perhaps frequency should be a \
  298. p-field.  Go to the Score Data window, choose an unused p-field (i.e. p[3]), and enter\
  299. it into the frequency param. 
  300. NXCursor
  301. NXibeam
  302. Scroller
  303. _doScroller:
  304. @@@ffs
  305. Times-Bold$
  306. Release 1.2 August, 1992 
  307. Patchmix 1.2
  308. Field4
  309. ScrollingText1
  310. UgenWindow
  311. PaletteView
  312. ImageControllerInstance
  313. ImageController
  314. {i*@@@}
  315. [36{i*@@@}]
  316. hide:
  317. terminate:
  318. copy:
  319. paste:
  320. selectAll:
  321. makeKeyAndOrderFront:
  322.     pathNames(1
  323. instName(
  324. instPath(
  325. stringTable(
  326. commandView(
  327. outputWindow(
  328. sampRate(\
  329. numChans(O
  330. delegate
  331. paletteView
  332. playIt:
  333. rescaleIt:    (
  334. runIt:
  335. compileInst:
  336. patchVw
  337. erase:
  338. writeCode:
  339. paramVal
  340.     scoreData(
  341. writeScore:
  342.     scorePath
  343. sndPath
  344.